package com.ruoyi.model.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 方案算法对象 model_plan_algorithm
 * 
 * @author rww
 * @date 2024-11-25
 */
public class ModelPlanAlgorithm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 方案id */
    @Excel(name = "方案id")
    private Long planId;

    /** 算法id */
    @Excel(name = "算法id")
    private Long algorithmId;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    @Excel(name = "算法结果是否发布")
    private String resultIsPublish;
    @Excel(name = "上一步算法ID")
    private Long parentAlgorithmId;

    @Excel(name = "上一步结果映射字段名称")
    private String parentResultField;




    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }
    public void setAlgorithmId(Long algorithmId) 
    {
        this.algorithmId = algorithmId;
    }

    public Long getAlgorithmId() 
    {
        return algorithmId;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    public String getResultIsPublish() {
        return resultIsPublish;
    }

    public void setResultIsPublish(String resultIsPublish) {
        this.resultIsPublish = resultIsPublish;
    }

    public Long getParentAlgorithmId() {
        return parentAlgorithmId;
    }

    public void setParentAlgorithmId(Long parentAlgorithmId) {
        this.parentAlgorithmId = parentAlgorithmId;
    }

    public String getParentResultField() {
        return parentResultField;
    }

    public void setParentResultField(String parentResultField) {
        this.parentResultField = parentResultField;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("planId", getPlanId())
            .append("algorithmId", getAlgorithmId())
            .append("sort", getSort())
            .append("resultIsPublish", getResultIsPublish())
            .append("parentAlgorithmId", getParentAlgorithmId())
            .append("parentResultField", getParentResultField())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
